﻿using UnityEngine;
using System.Collections;

/**\brief consente al GameObject di muoversi NON usando in alcun modo la fisica
 * 
 * 
 * \author Koldar
 * \date \today
 * \version 1.0
 */
public class MoveScript : MonoBehaviour {

	public Vector2 direction;
	public Vector2 moveIntensity=new Vector2(50,50);
	private Vector3 movement3D;
	
	// Use this for initialization
	void Start () {
		this.movement3D=new Vector3(this.moveIntensity.x*this.direction.x,this.moveIntensity.y*this.direction.y,0);
	}
	
	// Update is called once per frame
	void Update () {
		//this.transform.position+=this.movement3D*Time.deltaTime;
		this.transform.Translate(this.movement3D*Time.deltaTime);
	}
}
